/*
package com.example.child_protection.controller;

import com.example.child_protection.dto.request.UserRequestDTO;
import com.example.child_protection.dto.response.UserPageResponseDTO;
import com.example.child_protection.service.UserService;
import com.example.child_protection.util.ContentType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
@Api(value = "/api-demo", description = "测试")
public class DemoController extends BaseController {

    @Autowired
    public UserService userService;

    @ApiOperation(value ="测试", httpMethod = "GET",response = UserPageResponseDTO.class )
    @RequestMapping(value = "/{id}", method = RequestMethod.GET, produces = {ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
    public UserPageResponseDTO first(@PathVariable int id)throws Exception{
        //UserPageResponseDTO responseDTO = userService.selectAll(new UserRequestDTO() );
        logger.info("返回结果{}",new UserPageResponseDTO());
        return new UserPageResponseDTO();
    }

}
*/
